<?php
defined('_JEXEC') or die;
JHtml::_('behavior.keepalive');
$error=JRequest::getVar('error');
?>
<?php if ($type == 'logout'): ?>
<div class="form-wrapper">
	<form action="<?php echo JRoute::_('index.php', true, $params->get('usesecure')); ?>" method="post" id="home-login">
		<?php if ($params->get('greeting')){ ?>
		<div class="login-greeting">
		<?php if($params->get('name') == 0)
			echo JText::sprintf('MOD_LOGIN_HINAME', htmlspecialchars($user->get('name')));
		else
			echo JText::sprintf('MOD_LOGIN_HINAME', htmlspecialchars($user->get('username')));
?>
		</div>
		<?php } ?>
		<div class="logout-button">
		<input type="submit" name="Submit" class="button" value="<?php echo JText::_('JLOGOUT'); ?>" />
		<input type="hidden" name="option" value="com_users" />
		<input type="hidden" name="task" value="user.logout" />
		<input type="hidden" name="return" value="<?php echo $return; ?>" />
		<?php echo JHtml::_('form.token'); ?>
	</div>
	</form>
</div>
<?php else: ?>
<p>For at logge ind skal du indtaste din e-mail og adgangskode</p>
<div class="form-wrapper">
	<form action="<?php echo JRoute::_('index.php', true, $params->get('usesecure')); ?>" method="post" id="home-login">
		<label for="">E-mail <span class="red">*</span></label>
		<input type="text" class="i-s-1 i-g" value="Indtast din e-mail" id="modlgn-username"  name="username">
		<label for="">Adgangskode <span class="red">*</span></label>
		<input id="modlgn-passwd" class="i-s-1 i-g" type="password" name="password" value="123456">
		<a href="<?php echo JRoute::_('index.php?option=com_users&view=reset')?>" class="a-txt">Glemt adgangskode</a>
		<a class="btnImage" id="btnLogin1" onclick="$('#home-login').submit();">MEDLEMSLOGIN</a>
		<a href="index.php?option=com_users&view=registration" class="btnImage" id="btnLogin2">Opret Bruger nu</a>
		<input  type="submit" style="position: absolute; left:-9999px"/>
		<input type="hidden" name="option" value="com_users" />
		<input type="hidden" name="task" value="user.login" />
		<input type="hidden" name="return" value="<?php echo $return; ?>" />
		<?php echo JHtml::_('form.token'); ?>
	</form>
</div>
<?php endif; ?>